import { http } from '@/utils/http.js'

export const loginAPI = (loginDTO) =>{
	return http({
		method:'POST',
		url:'/login',
		data:loginDTO
	})
}

export const registerAPI = (registerDTO) =>{
	return http({
		method:'POST',
		url:'/register',
		data:registerDTO
	})
}

export const logOutAPI = () =>{
	return http({
		method:'GET',
		url:'/logOut',
	})
}

export const selfAPI = () =>{
	return http({
		method:'GET',
		url:'/user/self',
	})
}



